package com.ldzl.service;

import com.ldzl.dto.FrozenStateDTO;
import com.ldzl.pojo.CkWarehouse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.web.domain.AjaxResult;

import java.util.List;

/**
* @author 风止
* @description 针对表【ck_warehouse(仓库表)】的数据库操作Service
* @createDate 2025-07-10 16:37:29
*/
public interface CkWarehouseService extends IService<CkWarehouse> {

    /**
     * 查询所有仓库信息
     * @return
     */
    List<CkWarehouse> findWarehouse(CkWarehouse  warehouse);

    /**
     * 获取编号仓库编号
     * @param encode
     * @return
     */
    AjaxResult getNumber(Long encode);

    /**
     * 新增/修改 仓库
     * @param warehouse
     * @return
     */
    int saveWarehouse(CkWarehouse warehouse);

    /**
     * 修改冻结状态
     * @param fst
     * @return
     */
    boolean updateFrozen(FrozenStateDTO fst);

    /**
     * 查询仓库/库区/库位
     * @return
     */
    List<CkWarehouse> selectWarehouse_w_l_a();


    /**
     * 删除仓库
     * @param warehouse_id
     * @return
     */
    int deleteWarehouse(Long warehouse_id);

    /**
     * 批量删除仓库
     * @param ids
     * @return
     */
    String deleteWarehouse_batch(List<Long> ids);
}
